package com.example.portdemo.service;

import com.example.portdemo.date.model.Repo;
import com.example.portdemo.date.model.User;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface ApiService {

    @GET("users")
    Call<List<User>> getUsers();

    @GET("users/{user}/repos")
    Call<List<Repo>> getRepos(@Path("user") String user);

    @GET("users/{user}/repos")
    Call<List<Repo>> listRepos(@Path("user") String user, @Query("sort") String sort);

    // Add more methods as per your API endpoints
}
